<!DOCTYPE html>
<html lang="en">
<body>
<h1 id="text" onclick="show()">哈哈</h1>
<script>



</script>

</body>
<head>
    <meta charset="UTF-8">
    <script>
        function add(x, y) {
        return x + y;
    }
        function show() {
            data = add(1, 3)
            document.write(data)
        }
    </script>
</head>
</html>